/**
 * FileName: IndexController
 * Author:   P
 * Date:     2021/4/22 16:31
 * Description:
 */
package com.hospital.nurse.controller;

import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Date;
import java.util.HashMap;
import java.util.Map;

@RestController
@RequestMapping("/index")
@CrossOrigin
public class IndexController {

    @RequestMapping("/indexData")
    public Map<String,Object> indexData(){
        Map<String, Object> map = new HashMap<>();
        long todaytime=new Date().getTime();//获取当前日期毫秒值
        map.put("time",todaytime/1000/60/60/24);
        return map;
    }


}
